<?php
//header('Refresh: 1');
//$messenger = new Helper_Messenger();
//$session=Session::instance();
//$messenger=$session->get_once('messenger');
?> 
<html lang="pl">
    <head>
        <meta charset ="utf-8">
        <title> Panel Administracyjny</title>

        <base href="<?php echo URL::base('http') ?>">
        <link href="assets/css/bootstrap.css" rel="stylesheet">
        <link href ="assets/css/bootstrap-responsive.css" rel="stylesheet">
    </head>
    <body>
        <div class="container" id="wrapper">    
            <div class="row">
                <div class="span3 offset9">
                    <h3><?php // echo $title  ?></h3>
                    <ul class="nav nav-pills  pull-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
<?php echo Auth::instance()->get_user()->username ?>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="admin_auth/logout">Wyloguj</a></li>
                            </ul>
                        </li>
                    </ul>

                </div>            

            </div>  
            <div class="navbar navbar-inverse">
                <div class="navbar-inner">
                    <a class="brand" href="#">Home</a>
                    <ul class="nav">
                        <?php if(Auth::instance()->logged_in('admin')): ?>
                        <li>
                            <a href="admin_user">Użytkownicy</a>
                        </li>
                        <?php elseif (Auth::instance()->logged_in('doctor')): ?>
                        <li>
                            <a href="user_doctor/patient">Pacjenci</a>
                        </li>
                        <?php endif; ?>
                        <li>
                            <a href="#">Link</a>
                        </li>
                    </ul>
                </div>
            </div>
            <script src="assets/js/jquery-1.8.2.min.js"></script>
            <script src="assets/js/bootstrap.js"></script>
            <div class="span12">                        
                <div class="container-fluid">
            <?php include Kohana::find_file('views', $content) ?>
                </div>
            </div>

        </div>
    </body>
</html> 
<?php
// $session->set('messenger',$messenger);
// unset($messenger);
?>